package com.yazi.mxz.person.common;

import java.io.Serializable;

import com.yazi.mxz.common.entity.beans.Company;
import com.yazi.mxz.common.entity.beans.Member;
import com.yazi.mxz.common.entity.beans.Store;

/**
 * 
 * @author mo_yq5
 * @date 2014-12-30
 */
public class Principal implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -2838650130532444336L;
	private Member member;
	private Store store;
	private Company company;
	public Member getMember() {
		return member;
	}
	public void setMember(Member member) {
		this.member = member;
	}
	public Store getStore() {
		return store;
	}
	public void setStore(Store store) {
		this.store = store;
	}
	public Company getCompany() {
		return company;
	}
	public void setCompany(Company company) {
		this.company = company;
	}
	
	public String getM_name() {
		return null == member ? "" : member.getName();
	}
	
	public String getS_name() {
		return null == store ? "" : store.getName();
	}
	
	public String getC_name() {
		return null == company ? "" : company.getName();
	}
}
